package com.firmboy.dao;

import com.firmboy.model.Course;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.RepositoryDefinition;

import java.util.List;

@RepositoryDefinition(domainClass = Course.class,idClass = Long.class)
public interface CourseRepository extends CrudRepository<Course, Long>,PagingAndSortingRepository<Course, Long> {
    @Override
    public List<Course> findAll();
}
